package org.yzh.scheduler.model.vo;

import io.swagger.annotations.ApiModelProperty;
import org.yzh.scheduler.model.enums.Role;

public class Token {

    @ApiModelProperty("令牌")
    private String token;

    @ApiModelProperty("用户名")
    private Integer username;

    @ApiModelProperty("角色")
    private Role role;

    public Token() {
    }

    public Token(String token, Integer username, Role role) {
        this.token = token;
        this.username = username;
        this.role = role;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUsername() {
        return username;
    }

    public void setUsername(Integer username) {
        this.username = username;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}